# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=riot-web
pkgver=1.7.3
pkgrel=0
pkgdesc="A glossy Matrix collaboration client for the web"
url="https://riot.im/"
arch="noarch"
options="!check"
license="Apache-2.0"
source="https://github.com/vector-im/riot-web/releases/download/v$pkgver/riot-v$pkgver.tar.gz"
builddir="$srcdir/riot-v$pkgver"

build() {
	return 0
}

package() {
	mkdir -p "$pkgdir"/usr/share/webapps \
		"$pkgdir"/etc/riot-web
	cp -r "$builddir" "$pkgdir"/usr/share/webapps/riot-web
	mv "$pkgdir"/usr/share/webapps/riot-web/config.sample.json \
		"$pkgdir"/etc/riot-web
	ln -sf /etc/riot-web/config.json \
		"$pkgdir"/usr/share/webapps/riot-web/config.json
}

sha512sums="77d6fc6cae622a9e0c0dd84f4fc2447871dd79785164ddd691ede912027d89e52d24ff8fd94d0c1fe0f9725fd6f13909fd512aad86bd572e31ae8ab9c202e019  riot-v1.7.3.tar.gz"
